package com.smart.campus.controller;

import com.smart.campus.dto.Ethnicity;
import com.smart.campus.pojo.ResponseResult;
import com.smart.campus.service.EthnicityServiceFeign;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "民族管理")
@Slf4j
@RestController
@RequestMapping(value = "ethnicity")

public class EthnicityController {
    @Autowired
    private EthnicityServiceFeign ethnicityServiceFeign;

    @RequestMapping(value = "findEthnicityList")
    public ResponseResult<List<Ethnicity>> findEthnicityList(){
        return new ResponseResult<>(200,"成功",ethnicityServiceFeign.findEthnicityList());
    }
}
